package hdaccp.liteamall.controller.ln;


import hdaccp.liteamall.dao.GoodsMapper;
import hdaccp.liteamall.entity.LitemallGoods;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class GoodsController {
    @Resource
    private GoodsMapper goodsMapper;

    //查询所有商品
    @RequestMapping("goods/query")
    public List<LitemallGoods> query(){
        return goodsMapper.query();
    }
}
